import { _decorator, Component, director, Node } from 'cc';
import Banner from './Scripts/Banner';
import { ProjectEventManager, ProjectEvent } from './Scripts/Framework/Managers/ProjectEventManager';
const { ccclass, property } = _decorator;

@ccclass('MainUI')
export class MainUI extends Component {

    @property(Node)
    loading: Node;

    start() {
        Banner.Instance.ShowBannerAd();
    }

    update(deltaTime: number) {

    }

    Play() {
        this.loading.active = true;
        director.loadScene("TalkingLarry_GameScene");
        ProjectEventManager.emit(ProjectEvent.弹出窗口, "说话的拉里鸟");
    }
}


